package com.zyit.service.Impl;

import com.zyit.DataObject.T_goods;
import com.zyit.dao.T_goodsDaoSYY;
import com.zyit.service.GoodsService;

import java.util.List;

public class GoodsServiceImpl implements GoodsService {
    T_goodsDaoSYY t_goodsDao = new T_goodsDaoSYY();

    @Override
    public int InsertGoods(String goods_name, String price, String stock, String c1, String c2, String c3, String goods_desc ,String filer) throws Exception {
        return t_goodsDao.InsertGoods(goods_name, price, stock, c1, c2, c3, goods_desc,filer);
    }

    @Override
    public int UpdataGoods(String goods_name, String price, String stock, String c1, String c2, String c3, String goods_desc,String filer) throws Exception {
        return t_goodsDao.UpdataGoods(goods_name, price, stock, c1, c2, c3, goods_desc,filer);
    }

    @Override
    public List<T_goods> SelectGoods() throws Exception {
        return t_goodsDao.SelectGoods();
    }

    @Override
    public int Delete(String id) throws Exception {
        return t_goodsDao.DeleteGoods(id);
    }

    @Override
    public T_goods SelectIdGoods(String id) throws Exception {
        return t_goodsDao.SelectIdGoods(id);
    }
}
